Skip to content

feat: cap max prompt checkpoints to be 4#22

Merged
jjleng merged 1 commit intomainfrom
max-prompt-checkpoints
Apr 12, 2025
Merged

feat: cap max prompt checkpoints to be 4#22
jjleng merged 1 commit intomainfrom
max-prompt-checkpoints

Conversation

@jjleng
Copy link
Copy Markdown
Owner

@jjleng jjleng commented Apr 12, 2025

No description provided.

@jjleng jjleng requested a review from Copilot April 12, 2025 06:56
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

cp-agent/cp_agent/agents/coder/agent.py:10

  • [nitpick] Review if this direct import is necessary since the subsequent import from litellm might make this redundant.
import litellm


except litellm.exceptions.BadRequestError as e:
logger.exception(e)
error_msg = f"Bad request error: {e.message}"
Copy link

Copilot AI Apr 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using str(e) instead of e.message to safely obtain the error message, as not all exceptions may have a 'message' attribute.

Suggested change
error_msg = f"Bad request error: {e.message}"
error_msg = f"Bad request error: {str(e)}"

Copilot uses AI. Check for mistakes.
@jjleng jjleng merged commit 61f1fa5 into main Apr 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants